package com.ruoyi.finance.mapper;

import com.ruoyi.finance.domain.*;
import com.ruoyi.finance.domain.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface financeCheckMapper {

    List<JrRentInstallmentResponseDto> listAll(TJrquery tJrquery);

    JrRentInstallmentDetailsResponseDto selectInstallmentDetails(@Param("id") String id);

    CfContractsEntity selectSearchById(@Param("cf_contract_id") String cf_contract_id);

    List<CwReceiptPlanEntity> selectByMap(Map<String, Object> condition);

    JrRentInstallmentResponseDto listshenhe(@Param("id") String id);

    boolean updateapply_state(@Param("id") String id,@Param("apply_state") String apply_state);

    List<JrUrlResponseDto> selectAttachementUrlList(@Param("index") int index, @Param("parseLong") long parseLong, @Param("index1") int index1);

    JrSfLoanDetailsResponseDto selectSfLoanDetails(@Param("id") String id);

    SfContractEntity selectSearchById2(@Param("cf_contract_id") String cf_contract_id);

    List<CwPaymentPlanEntity> selectByMap2(HashMap<String, Object> hashMap);

    List<JrFactoringDetailsResponseDto> selectFactoringDetails(@Param("id") String id);

    JrFactoringEntity selectById(@Param("id") String id);

    ResponseDetailCompanyInfoDto detailCompanyInfo(@Param("businessId") Long businessId);

    BigDecimal getNeedPaybackMoney(@Param("businessId") Long businessId);

    List<ResponseTMCompanyAccountDetailDto> getAccountDetailList(@Param("businessId") Long businessId);

    ResponseUpdateBankInfoDto queryBankInfo(@Param("businessId") Long businessId);
}
